<% form_tag :action => 'create' do %>
  <%= render :partial => 'form' %>
  <%= submit_tag "创建", :class=>"submit" %>
<% end %>

<%= link_to '返回', :action => 'list' %>


<script>
    $(document).ready(function(){
        $("#tag_name").get(0).focus();
    });
</script>